home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Icon
/
c
/
LoseCaret
< prev
next >
Wrap
Text File
|
1995-07-08
|
470b
|
18 lines
#include "DeskLib:Wimp.h"
#include "DeskLib:WimpSWIs.h"
#include "DeskLib:Icon.h"
extern void Icon_LoseCaret(window_handle window, icon_handle icon)
/* Icon_LoseCaret
* This routine ensures that the caret is *not* contained within the
* designated icon. Only sets a new position if the icon currently contains
* the caret.
*/
{
caret_block caret;
Wimp_GetCaretPosition(&caret);
if (caret.window == window && caret.icon == icon)
Icon_SetCaret(-1, -1);
}